<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>调试页面</title>
    <style>
        p {
            font-size: 24px;
            color: #ff0000;
        }
    </style>
</head>
<body>
    <h1>这是一段标题文本</h1>
    <p>这是一段正文文本</p>

    <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
    <script>
        // VConsole 默认会挂载到 `window.VConsole` 上
        var vConsole = new window.VConsole();
    </script>

    <script>
        document.querySelector('p').onclick = () => {
            const rand = Math.random()
            console.log('产生的随机数字:', rand)
            console.log({name: '张三', age: 14, sex: 'male'})
        }
    </script>
</body>
</html>